<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title>title</title>
		<link rel="stylesheet" type="text/css" href="../css/api.css"/>
		<style>
			html, body {
				background: #f8f8f8;
			}
			header {
				background-color: #03a9f4;
			}
			.input {
				padding: 5px 0 6px 5px;
				overflow: hidden;
			}
			.buttom {
				width: 80px;
				height: 40px;
				line-height: 40px;
				text-align: center;
				color: white;
				float: right;
			}
			.display-none {
				display: none;
			}
			.record {
				font-size: 16px;
				background-color: white;
				padding: 10px 0px 10px 10px;
				border-bottom: 1px solid #eee;
			}
			.record:active {
				background: #f4f4f4;
			}
			.eliminate {
				font-size: 16px;
				text-align: center;
				padding: 5px 0;
				background: white;
			}
			.eliminate:active {
				background: #f4f4f4;
			}
		</style>
	</head>
	<body>
		<header id="header">
			<div class="input">
				<div id="button" class="buttom">
					取消
				</div>
			</div>
		</header>
		<script id="template" type="text/template">
			{{ if (it.length == 0) { }}
				<div style="font-size: 14px; text-align: center;padding: 5px 0;">暂无搜索记录</div>
			{{ } else { }}
				{{ for (var i = 0, len = it.length; i < len; i++) { }}
					<div tapmode onclick="Performsearch(this.innerHTML);" class="record">
						{{=it[i].searchrecord}}
					</div>
				{{ } }}
			{{ } }}
		</script>
		<div id="list"></div>
		<div tapmode onclick="eliminaterecord();" id="eliminate" class="eliminate">
			清除搜索记录
		</div>
	</body>
	<script type="text/javascript" src="../script/api.js"></script>
	<script type="text/javascript" src="../script/doT.min.js"></script>
	<script type="text/javascript">
	apiready = function(){
		init();
	};

	function init(){
		var rong = api.require('rongCloud2');
		rong.init(function(ret, err) {
		if (ret.status == 'success')
				alert(1);
		});
	}
	</script>
</html>
